import { request } from '@/api/request'

export function authLogin(data) {
    return request({
        url: '/api/auth/login',
        method: 'post',
        data
    })
}

export function authRegister(data) {
    return request({
        url: '/api/auth/register',
        method: 'post',
        data
    })
}

export function getAuthCaptcha(params) {
    return request({
        url: '/api/auth/captcha',
        method: 'get',
        params
    })
}


export function getAuthPermissions(params) {
    return request({
        url: '/api/auth/permissions',
        method: 'get',
        params
    })
}

